﻿
/***
Ham dung de confirm truoc khi xoa 1 item
***/
function ConfirmDelete() {
    return confirm('Bạn có chắc chắn muốn xóa');
}

function openRadWindow(naviagetURL, windowName) {
    var funtionWindow = window.radopen(naviagetURL, windowName);
    funtionWindow.center();
    return false;
}

function mouseEvent(elementClass, oldClass, newClass) {
    $(elementClass).hover(
        function() {
            $(this).removeClass(oldClass).addClass(newClass);
        },
        function() {
            $(this).removeClass(newClass).addClass(oldClass);
    }
    );
    /*$(elementClass).mouseover(function() {
        $(this).removeClass(oldClass).addClass(newClass);
    });

    $(elementClass).bind("mouseout", function() {
        $(this).removeClass(newClass).addClass(oldClass);
    });*/
}


/************************

Cac Ham Javascript trong trang DEFAULT.ASPX

************************/

function Customer_MouseOver(element) {
    element.setAttribute("class", "customer_item_text_selected");
    element.setAttribute("className", "customer_item_text_selected");
}

function Customer_MouseOut(element) {
    element.setAttribute("class", "customer_item_text");
    element.setAttribute("className", "customer_item_text");
}

